﻿


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"   "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
		<title>My first html document</title>
		<style type='text/css'>
		h1 {
			text-align: center;
		}
		p{
			margin:0px 0px 10px 0px;
		}
		#login, #password{
		  width:170px;
		}
		#loginBox{
		  width:200px; 
		  margin:100px auto 0px auto; 
		  background:#F0F0F0;
		  padding:15px;
		  border-radius: 20px;
		}
		#loginBox label {
			font-size:0.6em;
			text-align:left
		}
		#loginBox input[type='submit'] {
			background-color: activecaption;
			color: white;
			
		}
		</style>
	</head>
	<body>
		<h1> Przychodnia lekarska <h1>
		<div id="loginBox">
			<form action="login.php" method="post">
				<p>
					<label for="login">Login:</label>
					<input id="login" name="login" type="text" />
				</p>
				<p>
					<label for="password">Hasło:</label>
					<input id="password" name="password" type="password" />
				</p>
				<p>
					<input type="submit" value="Zaloguj" />
				</p>
			</form>
		</div><?php
		/*
				if ($db = sqlite_open('siwoz.db', 0666, $sqliteerror)) { 		$query = sqlite_query($db, 'select * from patients');
					$result = sqlite_fetch_all($query, SQLITE_ASSOC);
					print "<table border=1>";
					print "<tr><td>Id</td><td>Name</td><td>Age</td></tr>";
					foreach ($result as $row) {			print "<tr><td>" . $row['id'] . "</td>";
						print "<td>" . $row['name'] . "</td>";
						print "<td>" . $row['birth_year'] . "</td>";
					}		print "</table>";
				} else {		die($sqliteerror);
				}			  phpinfo();
				$dir = 'sqlite:db/siwoz.db';
				$dbh = new PDO($dir) or die("cannot open the database");
				$query = "SELECT * from patients";
				foreach ($dbh->query($query) as $row) {			echo $row[0];
				}				$dbhandle = sqlite_open('db/siwoz.db', 0666, $error);
				if (!dbhandle) {			echo "something wrong with the database";
					die($error);
				}		echo "Everything ok";
				sqlite_close($dbhandle);
		*/
		?>
	</body>
</html>